summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/library_applet_accessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/am/library_applet_accessor.h')
-rw-r--r--src/core/hle/service/am/library_applet_accessor.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/core/hle/service/am/library_applet_accessor.h b/src/core/hle/service/am/library_applet_accessor.h
new file mode 100644
index 000000000..698467233
--- /dev/null
+++ b/src/core/hle/service/am/library_applet_accessor.h
@@ -0,0 +1,34 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/am/applets/applets.h"
+#include "core/hle/service/service.h"
+
+namespace Service::AM {
+
+class ILibraryAppletAccessor final : public ServiceFramework<ILibraryAppletAccessor> {
+public:
+ explicit ILibraryAppletAccessor(Core::System& system_,
+ std::shared_ptr<Applets::Applet> applet_);
+
+private:
+ void GetAppletStateChangedEvent(HLERequestContext& ctx);
+ void IsCompleted(HLERequestContext& ctx);
+ void GetResult(HLERequestContext& ctx);
+ void PresetLibraryAppletGpuTimeSliceZero(HLERequestContext& ctx);
+ void Start(HLERequestContext& ctx);
+ void RequestExit(HLERequestContext& ctx);
+ void PushInData(HLERequestContext& ctx);
+ void PopOutData(HLERequestContext& ctx);
+ void PushInteractiveInData(HLERequestContext& ctx);
+ void PopInteractiveOutData(HLERequestContext& ctx);
+ void GetPopOutDataEvent(HLERequestContext& ctx);
+ void GetPopInteractiveOutDataEvent(HLERequestContext& ctx);
+ void GetIndirectLayerConsumerHandle(HLERequestContext& ctx);
+
+ std::shared_ptr<Applets::Applet> applet;
+};
+
+} // namespace Service::AM